package patterndesign.singleton;

/**
 * @Description
 * @Date 2021/9/18
 * @Created by Jonathan
 */
public class Minister {
    public static void main(String[] args) {
        int ministerNum = 5;
        for (int i = 0; i < ministerNum; i++) {
            Emperor emperor = Emperor.getInstance();
            System.out.printf("第%d个大臣参拜:", (i + 1));
            emperor.say();
        }
    }
}
